//
//  Extension+UILabel.swift
//  WeiboSwift
//
//  Created by 战场原黑仪 on 16/7/22.
//  Copyright © 2016年 战场原黑仪. All rights reserved.
//

import UIKit

extension UILabel {
    
    //便利构造函数
    convenience init(textColor: UIColor, textFontSize: CGFloat, maxWidth: CGFloat = 0) {
        self.init()
        
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(textFontSize)
        self.numberOfLines = 0
        
        if maxWidth > 0 {
            self.preferredMaxLayoutWidth = maxWidth
        }
        
    }
    
    
}
